package dbtypes;

public enum PermisionAlbum {
	Nothing, Partial, All;

	public int toInt() {
		switch (this) {
		case Nothing:
			return 1;
		case Partial:
			return 2;
		default:
			return 3;
		}
	}

	public PermisionAlbum getVal(int i) {
		switch (i) {
		case 1:
			return Nothing;
		case 2:
			return Partial;
		default:
			return All;
		}
	}
}